package day03;

public class OperDemo {
    public static void main(String[] args) {
        int num=5;
        int flag=num>0?1:2;
        System.out.println(flag);

        int a=4,b=5;
        int max=a>b?a:b;
        System.out.println(max);

        /*
        int age=18;
        String name="ZZZ";
        String home="渭南托荔县";
        System.out.println("age="+age);
        System.out.println(age);
        System.out.println("age=");
        System.out.println("我今年"+age+"岁了");
        System.out.println("你好，我叫"+name);
        System.out.println("你好，我叫"+name+"，今年"+age+"岁");
        System.out.println("你好，我叫"+name+"，今年"+age+"岁了，家住"+home);
        System.out.println(""+12+334+65+43);
        System.out.println(23+23+54+765+"");
        System.out.println(12+321+""+32+87);


        /*short s=5;
        s+=10;
        System.out.println(s);
        s-=5;
        System.out.println(s);
        s*=10;
        System.out.println(s);
        s/=5;
        System.out.println(s);
        s%=3;
        System.out.println(s);



        /*int a=5,b=10,c=5;
        boolean b1=a>b&&c++>2;
        System.out.println(b1);
        System.out.println(c);
        /*
        int a=5,b=10,c=5;
        System.out.println(b>=a||b<c);
        System.out.println(b<=c||b>a);
        System.out.println(b!=c||b>a);
        System.out.println(a==b||b<a);
        int score=90;
        System.out.println(score>0||score>100);
        boolean b1=!(a<b);
        System.out.println(b1);
        System.out.println(!(a>b));


        int a=5,b=10,c=5;
        /*
        System.out.println(a>b);
        System.out.println(c<b);
        System.out.println(a>=c);
        System.out.println(a<=b);
        System.out.println(a==c);
        System.out.println(a!=c);

        System.out.println(a%2==2);
        System.out.println(a+c>b);
        System.out.println(a++>5);
        System.out.println(a++>5);*/
       /*
        int a =5,b=6;
        int c =a++;
        int d =++b;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);

        int e=5,f=5;
        int g=e--;
        int h=--f;
        System.out.println(e);
        System.out.println(f);
        System.out.println(g);
        System.out.println(h);

         */
    }
}
